<template>
  <div>
    {{ num }}
    <button @click="handleClick">子组件+1</button>
  </div>
</template>

<script>
export default {
  props: ["num"],
  methods: {
    handleClick() {
      this.$emit('qwe', 10)
    }
  }
};
</script>